﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Commons.ReturnData
{
    public class DataResult<TEntity>
    {
        public int Total { get; set; }
        public List<TEntity> Datas { get; set; } = new List<TEntity>();
        public DataResult(int total) 
        {
            Total = total;
        }
        public DataResult() { }
        public DataResult(List<TEntity> datas) 
        { 
            Datas = datas; 
        }
        public DataResult(int total, List<TEntity> datas) : this(total)
        {
            Datas = datas;
        }
    }
}
